FROM openjdk:8-jre

EXPOSE 8868

ARG JAR_FILE
ADD target/${JAR_FILE} /home/app.jar

ADD target/classes/bootstrap.yml /home/bootstrap.yml
ADD target/classes/lib/libarcsoft_face.so /home/arcface/libarcsoft_face.so
ADD target/classes/lib/libarcsoft_face_engine.so /home/arcface/libarcsoft_face_engine.so
ADD target/classes/lib/libarcsoft_face_engine_jni.so /home/arcface/libarcsoft_face_engine_jni.so

ENTRYPOINT ["java", "-jar", "-Duser.timezone=Asia/Shanghai", "/home/app.jar"]